package org.example;

public class App {
    public static void main(String[] args) {
        double tmp = Math.log(Integer.MAX_VALUE) / Math.log(3);
        int tmp2 = (int) tmp;
        int tmp3 = Math.pow(3, tmp2);
        System.out.println(tmp3);
    }
}
